package com.oak.designmode._14_observeParttern.school;

/**
 * @ClassName: Test
 * @Description
 * @Author guoxy
 * @Date 2020/3/18
 * @Version 1.0
 */
public class Test {

    public static void main(String[] args){
        //创建一个主题
        ConcreteMonitor subject = new ConcreteMonitor();
        //定义一个观察者
        Student observer = new ConcreteStudent();
        //观察
        subject.addObserver(observer);
        //开始活动
        subject.saySomething();
    }
}
